import { BaseHintIcon } from "../common/hintIcon/BaseHintIcon";
import { ImagesConst } from "../../resource/ImagesConst";
import { Dispatcher } from "../../../mvc/core/Dispatcher";
import { DataEvent } from "../../events/DataEvent";
import { EventName } from "../../mvc/EventName";
import { UiHintIconView } from "../uiIconBtn/UiHintIconView";
type int = number;
//class DelegateTaskHintIcon
    
    export  class DelegateTaskHintIcon extends BaseHintIcon
    {
        constructor()
        {
            super(ImagesConst.DelegateTaskHintIcon);
            return;
        }

        protected /* override */ onHintIconClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.ShowDelegateWareHouse));
            return;
        }

        public /* override */ show(arg1: int=0, arg2: int=0): void
        {
            super.show(arg1, arg2);
            UiHintIconView.instance.addHintIcon(this);
            return;
        }

        public /* override */ hide(): void
        {
            super.hide();
            UiHintIconView.instance.removeHintIcon(this);
            return;
        }
    }
